/*
 * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <tencentcloud/vpc/v20170312/model/AuditCrossBorderComplianceRequest.h>
#include <tencentcloud/core/utils/rapidjson/document.h>
#include <tencentcloud/core/utils/rapidjson/writer.h>
#include <tencentcloud/core/utils/rapidjson/stringbuffer.h>

using namespace TencentCloud::Vpc::V20170312::Model;
using namespace rapidjson;
using namespace std;

AuditCrossBorderComplianceRequest::AuditCrossBorderComplianceRequest() :
    m_serviceProviderHasBeenSet(false),
    m_complianceIdHasBeenSet(false),
    m_auditBehaviorHasBeenSet(false)
{
}

string AuditCrossBorderComplianceRequest::ToJsonString() const
{
    Document d;
    d.SetObject();
    Document::AllocatorType& allocator = d.GetAllocator();


    if (m_serviceProviderHasBeenSet)
    {
        Value iKey(kStringType);
        string key = "ServiceProvider";
        iKey.SetString(key.c_str(), allocator);
        d.AddMember(iKey, Value(m_serviceProvider.c_str(), allocator).Move(), allocator);
    }

    if (m_complianceIdHasBeenSet)
    {
        Value iKey(kStringType);
        string key = "ComplianceId";
        iKey.SetString(key.c_str(), allocator);
        d.AddMember(iKey, m_complianceId, allocator);
    }

    if (m_auditBehaviorHasBeenSet)
    {
        Value iKey(kStringType);
        string key = "AuditBehavior";
        iKey.SetString(key.c_str(), allocator);
        d.AddMember(iKey, Value(m_auditBehavior.c_str(), allocator).Move(), allocator);
    }


    StringBuffer buffer;
    Writer<StringBuffer> writer(buffer);
    d.Accept(writer);
    return buffer.GetString();
}


string AuditCrossBorderComplianceRequest::GetServiceProvider() const
{
    return m_serviceProvider;
}

void AuditCrossBorderComplianceRequest::SetServiceProvider(const string& _serviceProvider)
{
    m_serviceProvider = _serviceProvider;
    m_serviceProviderHasBeenSet = true;
}

bool AuditCrossBorderComplianceRequest::ServiceProviderHasBeenSet() const
{
    return m_serviceProviderHasBeenSet;
}

uint64_t AuditCrossBorderComplianceRequest::GetComplianceId() const
{
    return m_complianceId;
}

void AuditCrossBorderComplianceRequest::SetComplianceId(const uint64_t& _complianceId)
{
    m_complianceId = _complianceId;
    m_complianceIdHasBeenSet = true;
}

bool AuditCrossBorderComplianceRequest::ComplianceIdHasBeenSet() const
{
    return m_complianceIdHasBeenSet;
}

string AuditCrossBorderComplianceRequest::GetAuditBehavior() const
{
    return m_auditBehavior;
}

void AuditCrossBorderComplianceRequest::SetAuditBehavior(const string& _auditBehavior)
{
    m_auditBehavior = _auditBehavior;
    m_auditBehaviorHasBeenSet = true;
}

bool AuditCrossBorderComplianceRequest::AuditBehaviorHasBeenSet() const
{
    return m_auditBehaviorHasBeenSet;
}


